package chapter9;

public class A2 extends Apple {
    public String getInfo() {
        return super.getInfo().toString();
    }

    /**
     * A2继承父类时未指定实际的泛型类型，此时类型为Object
     * @param args
     */
    public static void main(String[] args) {
        A2 a2 = new A2();
        a2.setInfo("aaa");
        System.out.println(a2.getInfo());
    }
}